
package jp.ac.aiit.yc.softarch.hbcp.model.common;

public class LineElement {

	private int x;
	private int y;
	private int width;
	private Long color;

	private LineElement previous;
	private LineElement next;

	public LineElement(int x, int y, int width, Long color,
			LineElement previous, LineElement next) {
		this.x = x;
		this.y = y;
		this.width = width;
		this.color = color;
		this.previous = previous;
		this.next = next;
	}

	public LineElement(int x, int y, int width, Long color, LineElement previous) {
		this.x = x;
		this.y = y;
		this.width = width;
		this.color = color;
		this.previous = previous;
	}

	public LineElement(int x, int y) {
		this.x = x;
		this.y = y;
	}
	public LineElement() {}


	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public Long getColor() {
		return color;
	}

	public void setColor(Long color) {
		this.color = color;
	}

	public LineElement getPrevious() {
		return previous;
	}

	public void setPrevious(LineElement previous) {
		this.previous = previous;
	}

	public LineElement getNext() {
		return next;
	}

	public void setNext(LineElement next) {
		this.next = next;
	}
}
